package com.changgou.config.service.impl;

import com.changgou.config.dao.ProvincesMapper;
import com.changgou.config.pojo.Provinces;
import com.changgou.config.service.ProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvincesServiceImpl implements ProvincesService {

    @Autowired
    private ProvincesMapper provincesMapper;

    /**
     * 查询所有省份
     * @return
     */
    @Override
    public List<Provinces> findAll() {
        return provincesMapper.selectAll();
    }


}
